<me:UITMKRF x:Class="WPFExcelReport.TFFSAV37"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
            xmlns:Localization="clr-namespace:Localization;assembly=Localization"   
            xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"  
            xmlns:AM="clr-namespace:WPFExcelReport;assembly=TAMSTAMM"
            xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
            FontSize="12"
            xmlns:me="clr-namespace:WPFExcelReport"
            x:Name="TV"
            Loaded="Window_Loaded">
    <me:UITMKRF.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1440  x:Key="day"/>
        <ucd:Divideby480  x:Key="shift"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:TextTrimmingConverter x:Key="Trim"/>
        <ucd:PNumConverter x:Key="pnum"/> 
    </me:UITMKRF.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition> 
            <RowDefinition Height="1*"></RowDefinition> 
        </Grid.RowDefinitions> 
        <StackPanel Grid.Row="0" Grid.Column="1"  >
            <WrapPanel>  
                <TextBlock  Text="{Binding Source={Localization:TranslateExtension Word=显示:}}" VerticalAlignment="Center"></TextBlock>
                <ComboBox    Width="40" VerticalAlignment="Center" Name="cD" SelectionChanged="DENSITY_SelectionChanged"  >
                    <ComboBoxItem>1</ComboBoxItem>
                    <ComboBoxItem>2</ComboBoxItem>
                    <ComboBoxItem>4</ComboBoxItem>
                    <ComboBoxItem>8</ComboBoxItem>
                    <ComboBoxItem>12</ComboBoxItem>
                    <ComboBoxItem>16</ComboBoxItem>
                    <ComboBoxItem>24</ComboBoxItem>
                    <ComboBoxItem>48</ComboBoxItem>
                    <ComboBoxItem>72</ComboBoxItem>
                </ComboBox>
                <TextBlock Text="{Binding DENSITY, ElementName=TV}" />
                <TextBlock Text="{Binding Source={Localization:TranslateExtension Word=小时}}" />
                <Button   Width="Auto"  Margin="10,0,0,0" Content="{Binding Source={Localization:Translate Word=当前}}"  VerticalAlignment="Center" Click="Current_Click" />
                <Button   Width="Auto"  Margin="10,0,0,0" Content="{Binding Source={Localization:Translate Word=仅有任务}}"  VerticalAlignment="Center" Click="ShowWithJobsOnlyCommand" />
                <Button   Width="Auto"  Margin="10,0,0,0" Content="{Binding Source={Localization:Translate Word=所有}}"  VerticalAlignment="Center" Click="ShowAllMachineCommand" />
                 <WrapPanel Visibility="Collapsed">
                <TextBlock   Width="Auto"  Margin="10,0,0,0" Text="{Binding Source={Localization:Translate Word=加工中心}}"  VerticalAlignment="Center"/>
                <TextBox Background="White"   Width="20"   CharacterCasing="Upper" Margin="10,0,0,0" Text="{Binding KSTKRS, ElementName=TV}"  VerticalAlignment="Center"/>
                <TextBox Background="White"   Width="40"   Margin="10,0,0,0" Text="{Binding KSTKRS, ElementName=TV}"   VerticalAlignment="Center"/>
                <TextBox Background="White"   Width="20"  Margin="10,0,0,0" Text="{Binding AGANG, ElementName=TV}"   VerticalAlignment="Center"/>
                <TextBox Background="White"   Width="20"   Margin="10,0,0,0" Text="{Binding AMTYP, ElementName=TV}"  VerticalAlignment="Center"/>
                <AM:TSAM02 Height="20" KST="{Binding KST, ElementName=TV}" KSTKRS="{Binding KSTKRS, ElementName=TV}" AMTYP="{Binding AMTYP, ElementName=TV}" MACHINEID="{Binding MACHINEID, ElementName=TV}" VerticalAlignment="Center"/>
                </WrapPanel>
                <TextBlock  Background="White"  Width="40" Text="{Binding Source={Localization:Translate Word=按机型}}" VerticalAlignment="Center" Margin="5,0,0,0"  />
                <CheckBox Name="chkMType" VerticalAlignment="Center" Margin="10,0,0,0" IsChecked="{Binding IsMachineType, ElementName=TV}"/> 
            </WrapPanel>
            <WrapPanel Name="Board"> 
                <TextBlock Text="{Binding Source={Localization:Translate Word=任务个数:}}" Margin="10,0,0,0"></TextBlock>
                <TextBlock Text="{Binding Source={Localization:Translate Word=0}}" Width="60" Name="txtJNUM"></TextBlock>
                <TextBlock Text="{Binding Source={Localization:Translate Word=任务数量:}}"></TextBlock>
                <TextBlock Text="{Binding Source={Localization:Translate Word=0}}" Width="100" Name="txtJQTY"></TextBlock>
                <TextBlock Text="{Binding Source={Localization:Translate Word=拖期个数:}}"></TextBlock>
                <TextBlock Text="{Binding Source={Localization:Translate Word=0}}" Width="60" Name="txtDJNUM"></TextBlock>
            </WrapPanel>
        </StackPanel>
        <Grid Grid.Row="1" >
            <Grid.RowDefinitions> 
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="1*"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="1*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <ex:AniScrollViewer  Grid.Row="0" Grid.Column="1"   Name="vwCalendar" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"  >
                <StackPanel Name="ZoneCalendar" Orientation="Horizontal"/>
            </ex:AniScrollViewer>
            <ex:AniScrollViewer  Grid.Row="1" Grid.Column="0"   
                                 Name="vwMachine"  
                                 VerticalScrollBarVisibility="Hidden" 
                                 ScrollChanged="vwMachine_ScrollChanged"
                >
                <StackPanel Name="MachineTable" />
            </ex:AniScrollViewer>
            <ex:AniScrollViewer  
                Grid.Row="1"  Grid.Column="1"  
                Name="mainViewer" 
                ScrollChanged="mainViewer_ScrollChanged"
                HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible">
                <StackPanel Name="machines" />
            </ex:AniScrollViewer>
        </Grid> 
    </Grid>
</me:UITMKRF>

    
